package system.model.converter;

import common.model.po.SysBusinessCodeDetail;
import system.model.request.SaveBusinessCodeRequest;

/**
 * 描述
 *
 * @author 米泽鹏
 * @since 2023-12-6 下午 3:20
 */
public class SysBusinessCodeConverter {

	public static SysBusinessCodeDetail detailVoToPo(SaveBusinessCodeRequest.SysBusinessCodeDetailVo sysBusinessCodeDetailVo) {
		if (sysBusinessCodeDetailVo == null) {
			return null;
		}
		SysBusinessCodeDetail sysBusinessCodeDetail = new SysBusinessCodeDetail();
		sysBusinessCodeDetail.setParentId(sysBusinessCodeDetailVo.getParentId());
		sysBusinessCodeDetail.setValue(sysBusinessCodeDetailVo.getValue());
		sysBusinessCodeDetail.setLabel(sysBusinessCodeDetailVo.getLabel());
		sysBusinessCodeDetail.setSort(sysBusinessCodeDetailVo.getSort());
		sysBusinessCodeDetail.setId(sysBusinessCodeDetailVo.getId());
		return sysBusinessCodeDetail;
	}

}
